﻿using System;
using System.Collections;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Connection;
using Me.Prettyprint.Cassandra.Serializers;
using Me.Prettyprint.Cassandra.Service;
using Me.Prettyprint.Cassandra.Utils;
using Me.Prettyprint.Hector.Api;
using Me.Prettyprint.Hector.Api.Beans;
using Me.Prettyprint.Hector.Api.Mutation;
using Me.Prettyprint.Hector.Api.Query;
using Org.Apache.Cassandra.Thrift;

namespace Me.Prettyprint.Cassandra.Model
{
    /// <summary>
    /// Note that C# does not allow "void" in generics. The work around is to use object instead.
    /// </summary>
    /// <typeparam name="?"></typeparam>
    public class MutationResultImpl<T> : ExecutionResult<object>, MutationResult
    {
        public MutationResultImpl(bool success, long execTime, CassandraHost cassandraHost) : base(null, execTime, cassandraHost)
        {
        }
        public MutationResultImpl(ExecutionResult<object> res)
            : base(null, res.ExecutionTimeNano, res.HostUsed)
        {
        }
        public override string ToString()
        {
            return FormatMessage("MutationResult", "n/a");
        }

    }
}
